﻿@{
    ViewBag.Title = "编辑模块信息";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutCMS.cshtml";
}
@section htmlhead{
    <link href="~/Content/assets/css/Layout/css/main.css" rel="stylesheet" />
    <link href="~/Content/assets/css/plugin/validator.css" rel="stylesheet" />
    }
@model LY.Entity.S_Module
 <div class="container">
     <div id="forms" class="mt10">
        <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl15">编辑模块信息</b></div>
            <div class="box_center">
              <form  id="frmEdit" method="post" action="@Url.Action("ModuleSave")" role="form" class="jqtransform">
                  <input id="ID" name="ID" value="@Model.ID" type="hidden" />
                  <table class="form_table pt15 pb15" style="width:100%;" border="0" >
                     <tr>
                         <td class="td_right">模块名称：</td>
                         <td class=""> 
                            <input type="text" id="Name" name="Name" value="@Model.Name" class="input-text lh30" size="40">
                         </td>
                     </tr>
                     <tr>
                         <td class="td_right">模块排序：</td>
                         <td class=""> 
                            <input type="text" id="Sequence" name="Sequence" value="@Model.Sequence" class="input-text lh30" size="40">
                            <input type="hidden" id="Path" name="Path" value="@Model.Path">
                         </td>
                     </tr>
                     <tr>
                         <td class="td_right">上级模块：</td>
                         <td class="">
                              @Html.ResourceDropDownList("ParentID", "ModuleTree", @Model.ParentID, new { @class = "wh160 select" })
                         </td>
                     </tr>
                     <tr>
                        <td class="td_right">模块路径：</td>
                        <td class=""> 
                            <input type="text" id="Url" name="Url" value="@Model.Url" class="input-text lh30" size="40">
                        </td>
                     </tr>
                     <tr>
                        <td class="td_right"></td>
                        <td class=""></td>
                     </tr>
                     <tr>
                        <td class="td_center" colspan="5">
                            <input type="button" id="btnSave" name="button" style="margin-right:50px;" class="btn btn82 btn_save2" value="保存"> 
                            <input type="button" id="btnReturn" name="button" class="btn btn82 btn_res" value="返回"> 
                        </td>
                     </tr>
                  </table>
              </form>
            </div>
          </div>
        </div>
     </div>
   </div> 
@section jssection{
    <script type="text/javascript"> 
    var util = {}; 
    var options = { 
  
    };

    var submoduleid = '@ViewBag.SubModuleId'.split(",");
    for (var i = 0; i < submoduleid.length; i++) {
        $("#ParentID option[value='" + submoduleid[i] + "']").remove();
    }
   </script>
    <script src="~/Content/assets/plugins/validator/validator.js"></script>
    <script src="~/Content/assets/DatePicker/WdatePicker.js"></script>
    <script src="~/Content/assets/app/module/moduleedit.js"></script>
}
